var router = require("express").Router();
var PF = require("../controllers/interface/page.factory");
var CommonUtils = require("../lib/common-utils");

//region 移动端
router.all("/mobile/response", CommonUtils.Common.RequestExtend, PF.Mobile.Response);
router.all("/mobile/open", CommonUtils.Common.RequestExtend, PF.Mobile.Open);
router.all("/mobile/login", CommonUtils.Common.RequestExtend, PF.Mobile.Login);
router.all("/mobile/login-qq", CommonUtils.Common.RequestExtend, PF.Mobile.Login_QQ);
router.all("/mobile/login-weibo", CommonUtils.Common.RequestExtend, PF.Mobile.Login_Weibo);
router.all("/mobile/login-weixin", CommonUtils.Common.RequestExtend, PF.Mobile.Login_Weixin);
router.all("/mobile/login-phone", CommonUtils.Common.RequestExtend, PF.Mobile.Login_Phone);
router.all("/mobile/logout", CommonUtils.Common.RequestExtend, PF.Mobile.Logout);
router.all("/mobile/user/user-anchor/page", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Anchor.Page);
router.all("/mobile/user/user-anchor/listhot", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Anchor.ListHot);
router.all("/mobile/user/user-anchor/listanchorsearch", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Anchor.ListAnchorSearch);
router.all("/mobile/user/user-anchor/applyenter", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Anchor.ApplyEnter);
router.all("/mobile/user/user-anchor/useranchorIDCard", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Anchor.User_AnchorIDCard);
router.all("/mobile/user/user-anchor/cover", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Anchor.Cover);

router.all("/mobile/user/user-info/update", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Info.Update);
router.all("/mobile/user/user-info/info", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Info.Info);
router.all("/mobile/user/user-info/page", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Info.Page);
router.all("/mobile/user/user-info/attention", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Info.Attention);
router.all("/mobile/user/user-info/avatar", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Info.Avatar);
router.all("/mobile/user/user-info/share", CommonUtils.Common.RequestExtend, PF.Mobile.User.User_Info.Share);

router.all("/mobile/phoneverifycode", CommonUtils.Common.RequestExtend, PF.Mobile.PhoneVerifyCode);
router.all("/mobile/pay-order", CommonUtils.Common.RequestExtend, PF.Mobile.Pay_Order);
router.all("/mobile/banner", CommonUtils.Common.RequestExtend, PF.Mobile.Banner);
router.all("/mobile/ios-pay-order", CommonUtils.Common.RequestExtend, PF.Mobile.IOS_Pay_Order);
router.all("/mobile/apple-pay", CommonUtils.Common.RequestExtend, PF.Mobile.Apple_Pay);
router.all("/mobile/giftlist", CommonUtils.Common.RequestExtend, PF.Mobile.GiftList);
router.all("/mobile/guardianlist", CommonUtils.Common.RequestExtend, PF.Mobile.GuardianList);
router.all("/mobile/weekstartrank", CommonUtils.Common.RequestExtend, PF.Mobile.WeekStarRank);
router.all("/mobile/contributionlist", CommonUtils.Common.RequestExtend, PF.Mobile.ContributionList);
router.all("/mobile/attentionlist", CommonUtils.Common.RequestExtend, PF.Mobile.AttentionList);
router.all("/mobile/anchorfanslist", CommonUtils.Common.RequestExtend, PF.Mobile.AnchorFansList);
//endregion

//region qcloud
router.all("/qcloud/live/callback", CommonUtils.Common.RequestExtend, PF.QCloud.Live.Callback);
//endregion

module.exports = router;